package view.admin;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import controller.ActionEvents.ActionHandler;

import javax.swing.JComboBox;
import javax.swing.ImageIcon;

public class AdminDeleteUser extends JPanel {
	private JComboBox comboBox;
	private JButton btnDeleteUser;
	private JButton btnMainMenu;
	private JLabel lblDeleteUser;
	
	public AdminDeleteUser(ActionHandler actionHandler)
	{
		setPreferredSize(new Dimension(750, 480));
		setLayout(null);
		setBackground(Color.WHITE);
		
		lblDeleteUser = new JLabel("Delete user");
		lblDeleteUser.setFont(new Font("Lucida Grande", Font.PLAIN, 28));
		lblDeleteUser.setBounds(327, 24, 168, 36);
		add(lblDeleteUser);	
		
		btnMainMenu = new JButton("Main menu");
		btnMainMenu.setBounds(677, 451, 134, 39);
		btnMainMenu.setBorderPainted(false);
		btnMainMenu.setContentAreaFilled(false);
		btnMainMenu.addActionListener(actionHandler);
		btnMainMenu.setActionCommand("backToAdminMenu");
		add(btnMainMenu);
		
		comboBox = new JComboBox();
		comboBox.setBounds(270, 162, 288, 29);
		add(comboBox);
		
		btnDeleteUser = new JButton("");
		btnDeleteUser.setIcon(new ImageIcon(AdminDeleteUser.class.getResource("/Pictures/green/submit.png")));
		btnDeleteUser.setBounds(343, 203, 134, 39);
		btnDeleteUser.setBorderPainted(false);
		btnDeleteUser.setContentAreaFilled(false);
		btnDeleteUser.addActionListener(actionHandler);
		btnDeleteUser.setActionCommand("DeleteUser");
		add(btnDeleteUser);
		
	}

	/**
	 * @return the comboBox
	 */
	public JComboBox getComboBox() {
		return comboBox;
	}

	/**
	 * @param comboBox the comboBox to set
	 */
	public void setComboBox(JComboBox comboBox) {
		this.comboBox = comboBox;
	}

	/**
	 * @return the btnDeleteUser
	 */
	public JButton getBtnDeleteUser() {
		return btnDeleteUser;
	}

	/**
	 * @return the btnMainMenu
	 */
	public JButton getBtnMainMenu() {
		return btnMainMenu;
	}
	
	
}
